package com.study.service;

import com.spring.BeanNameAware;
import com.spring.Component;

@Component
public class MemberService implements BeanNameAware {
    private String beanName;

    @Override
    public void setBeanName(String name) {
        beanName = name;
    }

    public void test(){
        System.out.println(beanName);
    }
}
